#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>

class myPushButton : public QPushButton
{
    Q_OBJECT
public:
    //explicit myPushButton(QWidget *parent = nullptr);

    //构造函数，参数1正常显示的图片路径，参数2按下的图片路径
    myPushButton(QString normalImg,QString pressImg="");

    QString normalImgPath;
    QString pressImgPath;

    //弹跳特性
    void zoom1();//向下跳
    void zoom2();//向上跳

    //重写按钮按下释放事件
    void mousePressEvent(QMouseEvent *);
    void mouseReleaseEvent(QMouseEvent *);


signals:

};

#endif // MYPUSHBUTTON_H
